import { createRouter, createWebHashHistory } from 'vue-router'
import Cart from '../views/Cart.vue'
import Jsti from '@/views/Jsti.vue'

const routes = [
  {
    path:'/',
    redirect: '/cart',  // 重定向:重新指向其它path,会改变网址
  },
  {
    path: '/cart',
    component: Cart
  },
  {
    path:'/jsti',
    component: Jsti
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
